﻿//code by Heskey0
//https://space.bilibili.com/455965619
//https://github.com/Heskey0

using System.Diagnostics;
using UnityEditor;
using UnityEngine;
using Debug = UnityEngine.Debug;

namespace Teresa.Editor
{
    public class DebugTools
    {
        public static void Log(string msg, string color = "white")
        {
            Debug.Log($"<color=green>[TOOLS]::</color><color={color}>{msg}</color>");
        }
    }
    public class CustomTools
    {
        [MenuItem("CustomTools/OpenExplorer %e", priority = 1)]
        public static void OpenFolder()
        {
            Process p = new Process();
            p.StartInfo.FileName = "explorer.exe";
            p.StartInfo.Arguments = (Application.dataPath + "/../").Replace('/','\\');
            p.Start();
        }
        
        
    }
    
}